﻿
using System.IO;
using TestConsole;

namespace MyBroswer
{
    public partial class MainWindow
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void RunJs_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            //var gen = new JsGen();
            //var js= gen.GetJsByFile(InfoSaver.TempFileName);

            var js = File.ReadAllText("temp.js");
            this.webView.ExecuteScriptAsync(js);
        }
    }
}
